﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace StudentManagement.Controllers
{

    /// <summary>
    /// Controller for Student Management Admin Console
    /// </summary>
    public class AdminController : Controller
    {
        //
        // GET: /Admin/

        public ActionResult Index()
        {
            if (Request.IsAuthenticated)
            {
                ViewBag.Message = "Manage information related to students";
                return View();
            }
            else
                return RedirectToAction("Login", "Account");
        }

    }
}
